(

    $(document).ready(function () {

        $.ajax({
            url: '/TokenGetServlet',
            dataType: 'json',
            type: 'POST',
            data: {option: 'getpowers'},
            success: function (returnValue) {
                $("#navbarUl").append("   <li class=\"nav-item\"><a class=\"nav-link \" aria-current=\"page\" href=\"/index.html\">首页</a></li>\n" +
                    "                        <li class=\"nav-item\"><a class=\"nav-link\" href=\"/bookservlet?option=allbookSavepageId&allBookpageid=1\">书 库</a></li>");


                // alert(returnValue.user.user_id);
                var powers = returnValue.powers;
                for (var i = 0; i < powers.length; i++) {
                    $("#navbarUl").append("<li class='nav-item'><a class='nav-link' href='"+ powers[i].power_hrf + ".html'>" + powers[i].power_commit + "</a></li>")

                }
                // <ul className="navbar-nav me-auto mb-2 mb-lg-0 ms-lg-4" id="navbarUl">

            }
        })


    })
)